package com.yatong.controller;

import com.yatong.entity.SysRelation;
import com.yatong.service.SysRelationService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 权限表(SysRelation)表控制层
 *
 * @author makejava
 * @since 2018-11-01 16:23:02
 */
@RestController
@RequestMapping("sysRelation")
public class SysRelationController {
    /**
     * 服务对象
     */
    @Resource
    private SysRelationService sysRelationService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SysRelation selectOne(Integer id) {
        return this.sysRelationService.queryById(id);
    }

}